package com.yoki.cloud.common.core;

import com.yoki.cloud.common.model.exception.enums.RestStatus;

public enum  CoreRestStatus implements RestStatus {
    /**
     * 用于处理未知的服务端错误
     */
    TENANT_NOT_FOUND(40004, "未获取到租户标识");

    private final int code;

    private final String message;


    CoreRestStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int code() {
        return 0;
    }

    @Override
    public String message() {
        return null;
    }
}
